package jpf.nextsearch.base;

import java.util.ArrayList;
import java.util.List;


/**
 * @author <a href="mailto:jacek.pruszkowski@gmail.com">Jacek Pruszkowski</a>
 *
 */
public class GenericControllerModel {
	private List<String> errors;
	private List<String> messages;
	
	public GenericControllerModel() {
		this.messages = new ArrayList<String>();
		this.errors = new ArrayList<String>();
	}
	
	public void addError(String err) {
		errors.add(err);
	}

	public void addMessage(String m) {
		messages.add(m);
	}
	
	public List<String> getErrors() {
		return errors;
	}
	
	public void setErrors(List<String> errors) {
		this.errors = errors;
	}
	
	public List<String> getMessages() {
		return messages;
	}
	
	public void setMessages(List<String> messages) {
		this.messages = messages;
	}
	
}
